Hi Tom,
Every once in a while, if I am using the handwheels on the Hankook lathe, the Z (longitudinal ) axis will go into positive runaway and the only way to stop it is with EStop.
The axis will still show as enabled in KMotion.
Occasionally, instead of doing a runaway, the Z axis will oscillate violently.
I thought that I had fixed the problem when I detuned the speed Factor on Bit32 from 20 down to 10, as in the section of init.C below.
// Read Speed Selector
if (ReadBit(31)) // is X1 selected?
Factor = 0.200000;
else if (ReadBit(32)) // is X100 selected?
Factor = 10.0000000;
else // must be X10 then
Factor = 2.0000000;
if (!ReadBit(30))
{
// this is only executed if handwheels are enabled
// bit #30 is 1
ch0->Dest += Change1 * Factor;
ch1->Dest += Change1_2 * Factor;
This morning, for the first time, the X axis took off and it was only set on X10. An EStop was
required to stop it.
Have I got something wrong in this section of code?
I was only turning the handwheel slowly, in the positive direction.
I so have a length of unshielded ribbon cable, which I am going to replace, in the cabinet but I have taken to switching out the handwheel encoders when I am stopping and starting the spindle, just in case it was a noise problem.
The spindle had been running for a while and I was just pulling the tool back out of a cut when it took off.
Any ideas?
Ross F